//
//  File.swift
//
//
//  Created by didi on 2022/9/13.
//

import Vapor

public final class FileField: AbstractFormField<File, FileFieldTemplate> {
    public convenience init(_ key: String) {
        self.init(key: key, input: .init(data: "", filename: ""), output: .init(.init(key: key)))
    }

    override public func render(req: Request) -> TemplateRepresentable {
        output.context.error = error
        return super.render(req: req)
    }
}
